package com.shanyutiwen.springbootblogtest.service;

import com.shanyutiwen.springbootblogtest.model.PostModel;

import java.util.List;

public interface PostService {
    void savePost(PostModel post);
    void deletePost(Long id);
    PostModel getPostById(Long id);
    void updatePost(PostModel post);
    List<PostModel> getAll();
    void deleteAllPost();
}
